Added documentation.
authorFederico Mena Quintero <federico@redhat.com>
Wed, 10 Nov 1999 06:40:12 +0000 (06:40 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Wed, 10 Nov 1999 06:40:12 +0000 (06:40 +0000)
1999-11-10  Federico Mena Quintero  <federico@redhat.com>

* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Added
documentation.

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-io.c

index f96ea76c59210a774de76d3e06be7f80b9c7a37f..34cb1e57e201f2c6843ff740b46fefdb3ec2d6b1 100644 (file)
@@ -1,3 +1,8 @@
+1999-11-10  Federico Mena Quintero  <federico@redhat.com>
+
+       * src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Added
+       documentation.
+
 1999-11-09  Michael Fulbright  <drmike@redhat.com>
 
         * src/testpixbuf.c: Fixed it to use timeout to read from file
index 33aeb99483032211c13c95ea4282f12885429e21..63fdd13152b26bfa6bae8b36feaa2529d74967c1 100644 (file)
@@ -182,7 +182,7 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module)
 
        module_name = g_strconcat ("pixbuf-", image_module->module_name, NULL);
        path = g_module_build_path (PIXBUF_LIBDIR, module_name);
-        
+
        module = g_module_open (path, G_MODULE_BIND_LAZY);
        if (!module) {
                 /* Debug feature, check in present working directory */
@@ -241,14 +241,14 @@ gdk_pixbuf_get_module (gchar *buffer, gint size)
 /**
  * gdk_pixbuf_new_from_file:
  * @filename: Name of file to load.
- * 
+ *
  * Creates a new pixbuf by loading an image from a file.  The file format is
  * detected automatically.
- * 
- * Return value: A newly-created pixbuf, or NULL if any of several error
- * conditions occurred:  the file could not be opened, there was no loader for
- * the file's format, there was not enough memory to allocate the image buffer,
- * or the image file contained invalid data.
+ *
+ * Return value: A newly-created pixbuf with a reference count of 1, or NULL if
+ * any of several error conditions occurred:  the file could not be opened,
+ * there was no loader for the file's format, there was not enough memory to
+ * allocate the image buffer, or the image file contained invalid data.
  **/
 GdkPixbuf *
 gdk_pixbuf_new_from_file (const char *filename)
@@ -296,6 +296,15 @@ gdk_pixbuf_new_from_file (const char *filename)
        return NULL;
 }
 
+/**
+ * gdk_pixbuf_new_from_xpm_data:
+ * @data: 
+ * 
+ * Creates a new pixbuf by parsing XPM data in memory.  This data is commonly
+ * the result of including an XPM file into a program's C source.
+ * 
+ * Return value: A newly-created pixbuf with a reference count of 1.
+ **/
 GdkPixbuf *
 gdk_pixbuf_new_from_xpm_data (const gchar **data)
 {
@@ -320,4 +329,3 @@ gdk_pixbuf_new_from_xpm_data (const gchar **data)
 
         return pixbuf;
 }
-